/*------------------------------------------------------------------------------
ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
--------------------------------------------------------------------------------
This program was written for Afflatus Techtronics - Resource section.

Project 			: USART communication on PIC18Fxxx
File                : usart.h
Code type	        : Code Module

Controller	        : PIC18Fxxx
XTAL frequency     	: 8MHz [Internal]
Compiler and IDE	: MCC18 with MPLab IDE

Author  			: Ashwin Vijayakumar
Current Occupation  : Computer Engineering Graduate student @ WMU, Kalamazoo
                          , Michigan

Start Date			: Jan-15-2010
Validation Date    	: Jan-15-2010

--------------------------------------------------------------------------------
ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
------------------------------------------------------------------------------*/

// -----------------------------------------------------------------------------
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// USART routines ~~~~~~~~~~~~~~~~~~~~~~~
// -----------------------------------------------------------------------------

void Usart_Initialize(void);			// Initialize USART serial communication

void Usart_putc(unsigned char character);// Send a character through the USART port

void Usart_puts(unsigned char *string);	// Send a string (NULL terminated) of 
                                          	// characters
void Usart_putrs(const rom char *string);// Send a string (NULL terminated) of 
                                          	// characters
unsigned char Usart_getc(void);			// Receive a character

void Usart_gets(unsigned char *str, unsigned int len);
                                        // Receive a string of characters

// -----------------------------------------------------------------------------
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// USART routines ~~~~~~~~~~~~~~~~~~~~~~~
// -----------------------------------------------------------------------------
